package com.ruoyi.safe.vo.topic;

import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = false)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "话题分页请求参数")
public class TopicPageReqDTO {
    @ApiParam(value = "热度范围")
    private Integer[] heatDeg;
    @ApiParam(value = "创建时间范围")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime[] createTime;
    @ApiParam(value = "发帖数范围")
    private Integer[] postCount;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ApiParam(value = "删除标志（0代表存在 2代表删除）")
    private Integer delFlag;
    @ApiParam(value = "排序类型 1:热度 2:时间 3:发帖数")
    private Integer sortType = 2;
    @ApiParam(value = "排序方式 1:降序 2:升序")
    private Integer sortOrder = 1;
    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiParam(value = "标题")
    private String title;
}
